/*
 * Copyright (c) 2015 /3 /29
 * 	      6 :22 : 11
 *               By: wupeiji
 *               Q  Q:757671834
 * 	      It is not easy to meet each other in such a big world
 */

package spring.security.maven.serviceImp;

import org.springframework.stereotype.Repository;
import spring.security.maven.dao.Tb_orderMapper;
import spring.security.maven.daomain.Tb_order;
import spring.security.maven.service.OrderService;
import spring.security.maven.util.Page;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by wpj on 2015/3/29.
 * 作者：吴培基
 */
@Repository
public class OrderServiceImpl implements OrderService {
    @Resource
    private Tb_orderMapper orderMapper;
    @Override
    public int deleteByPrimaryKey(Long oId) {
        return 0;
    }

    @Override
    public int insert(Tb_order record) {
        return 0;
    }

    @Override
    public int insertSelective(Tb_order record) {
        return 0;
    }

    @Override
    public Tb_order selectByPrimaryKey(Long oId) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Tb_order record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(Tb_order record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Tb_order record) {
        return 0;
    }

    @Override
    public List<Tb_order> findInfoByPage(Page page) {
        if(page==null){
            return null;
        }
        List<Tb_order> tb_orders=orderMapper.findInfoByPage(page);

        return tb_orders;
    }
/**
 * 获取总页数
 */

    @Override
    public int findTotalNum() {
        return orderMapper.findTotalNum();
    }

}
